<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form id="search_form" name="search_form" method="post" action="">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center"><select name="gia_tu" id="gia_tu" style="width:110px">
      <option value="0">-- Giá từ --</option>
      <?php
	  for($i = 500000;$i <= 20000000;$i+=500000)
	  {
		?>  
		   <option value='<?php echo $i;  ?>'<?php   if($_POST['gia_tu']==$i){?> selected="selected"<?php } ?>><?php  echo number_format($i,0,',','.');  ?></option>
       <?php
		  
	  }
	  
	  ?>
     
      </select></td>
    </tr>
    <tr>
      <td align="center"><label for="gia_den" ></label>
        <select name="gia_den" id="gia_den" style="width:110px">
         <option value="0">-- Giá đến --</option>
      <?php
	  for($i = 500000;$i <= 20000000;$i+=500000)
	  {
		?>  
		   <option value='<?php echo $i;  ?>'<?php   if($_POST['gia_den']==$i){?> selected="selected"<?php } ?>><?php  echo number_format($i,0,',','.');  ?></option>
       <?php
		  
	  }
	  
	  ?>
      </select></td>
    </tr>
    <tr>
      <td height="35" align="center"><input type="submit" name="timkiem" id="timkiem" value="Tìm " style=" padding-left:20px; padding-right:20px;border-radius:10px 10px 10px 10px;" /></td>
    </tr>
  </table>
</form>
</body>
</html>